package com.dongdongshop.api;

import com.dongdongshop.data.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("dongdongshop-cart-service")
public interface CartServiceApi {


    @GetMapping("/cart/getCart")
    Result getCart(@RequestHeader String AutharizeToken);

    @PostMapping("/cart/deleteCart")
    Result deleteCart(@RequestHeader String AutharizeToken);
}
